def file_copy(source_path, target_path):
    with open(source_path, mode='rb') as source:
        with open(target_path, 'wb') as target:
            while True:
                data = source.read(100)
                if not data:
                    break
                target.write(data)


if __name__ == "__main__":
    source_path = input('请输入源文件地址:')
    target = source_path.split('\\')
    file_copy(source_path, target[-1])
